
res1 {
  x = "x"
  when (1 + 1 == 2) { foo = "foo" }
  when (1 + 1 == 3) { bar = "bar" }
  y = "y"
}

class Person {
  name: String = "Name"
  age: Int = 21
}

res2 = new Person {
  when (1 + 1 == 2) { name = "Pigeon" }
  when (1 + 1 == 3) { age = 42 }
}
